using UnityEngine;
using System.Collections;

public class DestroyHouseQuest : MonoBehaviour {

    public string m_PlaceName;
    public int m_QuestPriority = 0;
    private string m_ObjectiveID;

    Objective m_Objective;
    // Use this for initialization
    void Awake()
    {
        m_ObjectiveID = "Destroy " + m_PlaceName;

        m_Objective = QuestCreator.GetInstance().CreateObjective(m_QuestPriority, m_ObjectiveID, 1, "Destruir la " + m_PlaceName, "");
    }
	
	// Update is called once per frame
	void Update () {
	
	}
    public void RecieveExplosion()
    {
        QuestSystem.GetInstance().SendInfo(m_ObjectiveID, 1, "");
        GameObject.Destroy(this.gameObject);
    }
}
